package com.sl.biz.modular.process.controller;

import com.sl.biz.modular.process.controller.response.ProcessComponentGroupVO;
import com.sl.biz.modular.process.service.ProcessComponentBizService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/process/component")
@RequiredArgsConstructor
public class ProcessComponentController {

    private final ProcessComponentBizService processComponentBizService;

    @PostMapping("/list")
    public List<ProcessComponentGroupVO> list() {
        return processComponentBizService.list();
    }


}
